import React, { Component } from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import Forecast from './pages/forecast';
import Info from './pages/information';
import User from './pages/myself';
import Part from './pages/participation';
import Farticle from './detailPages/farticle';
import './App.css';
import Footer from './component/footer';

class App extends Component {
  constructor(props){
    super(props);
    this.state = {
      isShow:true
    }
  }
  componentDidUpdate(){
    debugger;
  }
  render() {
    return (
      <Router>
        <div className="App">
          <div className="content">
            <Route exact path="/" component={Forecast} />
            <Route path="/Info" component={Info} />
            <Route path="/User" component={User} />
            <Route path="/Part" component={Part} />
            <Route path="/Farticle" component={Farticle} />
          </div>
          <Footer></Footer>
        </div>
      </Router>
    );
  }
}

export default App;